﻿using Itech_Run.Application.Contracts.Shared.Dto;
using Itech_Run.Sys.Application.Contracts.Dto;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Itech_Run.Sys.Application.Contracts.Service
{
    public interface ISysDictionaryService : IApplicationService
    {
        Task<SysDictionaryDto> GetAsync(string id);
        Task<PagedResultDto<SysDictionaryDto>> GetListAsync(SysDictionaryListDto listDto);
        Task<SysDictionaryDto> InsertAsync(SysDictionaryCreateDto dto, string operateUser);
        Task<SysDictionaryDto> UpdateAsync(SysDictionaryUpdateDto dto, string operateUser);
        Task DeleteAsync(string id);
        Task<List<KeyValueDto>> GetCodeTypeListAsync();
        Task<List<SysDictionaryItemDto>> GetItemByCodeTypeAsync(string codeType);
    }
}
